package com.exchange.interfaces.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.exchange.interfaces.mapper.JgPublishDirectoryMapper;
import com.exchange.interfaces.domain.JgPublishDirectory;
import com.exchange.interfaces.service.IJgPublishDirectoryService;
import com.exchange.common.core.text.Convert;

/**
 * 数据交换_监管事项 服务层实现
 * 
 * @author exchange
 * @date 2019-06-04
 */
@Service
public class JgPublishDirectoryServiceImpl implements IJgPublishDirectoryService 
{
	@Autowired
	private JgPublishDirectoryMapper jgPublishDirectoryMapper;

	/**
     * 查询数据交换_监管事项信息
     * 
     * @param manageId 数据交换_监管事项ID
     * @return 数据交换_监管事项信息
     */
    @Override
	public JgPublishDirectory selectJgPublishDirectoryById(String manageId)
	{
	    return jgPublishDirectoryMapper.selectJgPublishDirectoryById(manageId);
	}
	
	/**
     * 查询数据交换_监管事项列表
     * 
     * @param jgPublishDirectory 数据交换_监管事项信息
     * @return 数据交换_监管事项集合
     */
	@Override
	public List<JgPublishDirectory> selectJgPublishDirectoryList(JgPublishDirectory jgPublishDirectory)
	{
	    return jgPublishDirectoryMapper.selectJgPublishDirectoryList(jgPublishDirectory);
	}
	
    /**
     * 新增数据交换_监管事项
     * 
     * @param jgPublishDirectory 数据交换_监管事项信息
     * @return 结果
     */
	@Override
	public int insertJgPublishDirectory(JgPublishDirectory jgPublishDirectory)
	{
	    return jgPublishDirectoryMapper.insertJgPublishDirectory(jgPublishDirectory);
	}
	
	/**
     * 修改数据交换_监管事项
     * 
     * @param jgPublishDirectory 数据交换_监管事项信息
     * @return 结果
     */
	@Override
	public int updateJgPublishDirectory(JgPublishDirectory jgPublishDirectory)
	{
	    return jgPublishDirectoryMapper.updateJgPublishDirectory(jgPublishDirectory);
	}

	/**
     * 删除数据交换_监管事项对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteJgPublishDirectoryByIds(String ids)
	{
		return jgPublishDirectoryMapper.deleteJgPublishDirectoryByIds(Convert.toStrArray(ids));
	}
	
}
